/*清除页面自带内外边距*/
* {
  margin: 0;
  padding: 0;
}

/*清除所有ul的原点*/
ul {
  list-style: none;
}

/*清除所有a标签的下划线*/
a {
  text-decoration: none;
}

body {
  background-color: #f3f5f7;
}

/*版心*/
.w {
  width: 1200px;
  margin: 0 auto;
}

/* ------- header ------- */

/*页面头部布局*/
.header {
  height: 42px;
  /*background-color: pink;*/
  margin: 30px auto;
}

/*头部 logo布局*/
.header .logo {
  float: left;
  width: 198px;
  height: 42px;
  /*background-color: aqua;*/
}

/*导航栏布局*/
.header .nav {
  float: left;
  margin-left: 60px;
  /*background-color: beige;*/
}

/*导航栏列表布局*/
.header .nav li {
  float: left;
  margin: 0 13px;
}

/*导航栏列表中a标签布局*/
.header .nav li a {
  display: block;
  padding: 0 10px;
  height: 42px;
  line-height: 42px;
  font-size: 18px;
  color: #050505;
}

/*鼠标经过导航栏的变化*/
.header .nav li a:hover {
  border-bottom: 2px solid #00a4ff;
}

/*搜索模块*/
.header .search {
  float: left;
  width: 412px;
  height: 42px;
  margin-left: 70px;
  /*background-color: chartreuse;*/
}

/*搜索输入框*/
.header .search input {
  float: left;
  width: 346px;
  height: 40px;
  padding-left: 15px;
  border: 1px solid #00a4ff;
  border-right: 0;
  font-size: 14px;
}

/*搜索按钮*/
.header .search button {
  float: left;
  width: 50px;
  height: 42px;
  border: 0;
  background-color: #00a4ff;
  background-image: url("imgs/fa-search.png");
  background-repeat: no-repeat;
  background-position: center;
}

/*用户模块*/
.header .user {
  float: right;
  height: 42px;
  line-height: 42px;
  margin-right: 30px;
  padding-left: 32px;
  /*background-color: aquamarine;*/
  background-image: url("imgs/avatar.png");
  background-repeat: no-repeat;
  background-position: left center;
  font-size: 14px;
  color: #666666;
}

/* ---------- banner ---------- */
/*banner模块*/
.banner {
  height: 421px;
  background-color: #1c036c;
}

/*banner中版心*/
.banner .w {
  height: 412px;
  background: url("imgs/banner.png") no-repeat center center;
}

/*侧边导航栏*/
.banner .sub-nav {
  float: left;
  width: 190px;
  height: 421px;
  background: rgba(0, 0, 0, 0.3);
}

/*链接列表*/
.banner .sub-nav ul li {
  height: 45px;
  line-height: 45px;
  padding: 0 20px;
}

/*侧边栏链接*/
.banner .sub-nav ul li a {
  color: white;
}

/*鼠标经过侧边栏链接*/
.banner .sub-nav ul li a:hover {
  color: #00a4ff;
}

/*链接中的">"*/
.banner .sub-nav ul li a span {
  float: right;
}

/*课程表模块*/
.banner .course {
  float: right;
  width: 230px;
  height: 300px;
  margin-top: 50px;
  background-color: white;
}

/*课程表标题*/
.banner .course h2 {
  height: 48px;
  line-height: 48px;
  text-align: center;
  font-size: 18px;
  color: white;
  background-color: #9bceea;
}

/*课程表内容*/
.banner .course .bd {
  padding: 0 20px;
}

/*内容列表*/
.banner .course .bd ul li {
  padding: 14px 0;
  border-bottom: 1px solid #eaeaea;
}

/*列表上层内容*/
.banner .course .bd ul li h4 {
  font-size: 14px;
  color: #4e4e4e;
}

/*列表下层内容*/
.banner .course .bd ul li p {
  font-size: 12px;
  color: #a5a5a5;
}

/*“查看全部课程”*/
.banner .course .bd a {
  display: block;
  height: 38px;
  margin-top: 5px;
  line-height: 38px;
  text-align: center;
  font-size: 16px;
  color: #00a4ff;
  border: 1px solid #00a4ff;
}

/* ---------- goods ----------*/
/*goods模块整体布局*/
.goods {
  height: 60px;
  margin-top: 10px;
  background-color: white;
  box-shadow: 0 2px 3px 3px rgba(0, 0, 0, 0.1);
}

/*goods中左标题*/
.goods h3 {
  float: left;
  height: 60px;
  line-height: 60px;
  margin: 0 30px;
  font-size: 16px;
  color: #00a4ff;
}

/*goods中间的列表*/
.goods ul li {
  float: left;
  height: 60px;
  line-height: 60px;
}

/*goods列表中链接*/
.goods ul li a {
  padding: 0 30px;
  font-size: 16px;
  color: #050505;
  border-left: 1px solid #cccccc;
}

/*goods右链接*/
.goods>a {
  float: right;
  height: 60px;
  line-height: 60px;
  margin-right: 30px;
  font-size: 14px;
  color: #00a4ff;
}

/* ---------- box ----------*/
/*整体盒子布局*/
.box {
  margin-top: 30px;
  overflow: hidden;
}

/*盒子内标题布局*/
.box .box-hd {
  height: 45px;
}

/*标题左内容*/
.box .box-hd h3 {
  float: left;
  font-size: 20px;
  color: #494949;
}

/*标题右内容*/
.box .box-hd>a {
  float: right;
  margin-top: 10px;
  margin-right: 30px;
  font-size: 12px;
  color: #a5a5a5;
}

/*调整整合ul大小，避免加上子内容外边距超出盒子大小*/
.box .box-bd ul {
  width: 1215px;
}

/*列表子内容布局*/
.box .box-bd ul li{
  float: left;
  width: 228px;
  height: 270px;
  margin-right: 15px;
  margin-bottom: 15px;
  background-color: white;
}

/*调整图片跟盒子一样大*/
.box .box-bd ul li img {
  width: 100%;
}

/*列表内容1*/
.box .box-bd ul li h4 {
  margin: 20px 20px 20px 25px;
  font-size: 14px;
  color: #050505;
  font-weight: 400;
}

/*列表内容2*/
.box .box-bd ul li .info {
  margin: 0 20px 0 25px;
  font-size: 12px;
  color: #999;
}

/* ---------- footer ---------- */
.footer {
  height: 415px;
  padding-top: 35px;
}

.footer .w .copy-right {
  float: left;
}

.footer .w .copy-right p {
  width: 430px;
  margin-top: 25px;
  font-size: 12px;
  color: #666666;
}

.footer .w .copy-right a {
  display: block;
  width: 120px;
  height: 36px;
  margin-top: 15px;
  line-height: 36px;
  text-align: center;
  border: 1px solid #00a4ff;
  font-size: 16px;
  color: #00a4ff;
}

.footer .w .links {
  float: right;
}

.links dl {
  float: left;
  margin-left: 120px;
}

.links dl dt {
  margin-bottom: 15px;
  font-size: 16px;
  color: #7d7d7d;
}

.links dl dd a {
  font-size: 12px;
  color: #333333;
}


